package com.cookor.poi.modules.cms.dao;

import com.cookor.poi.common.persistence.annotation.MyBatisDao;
import com.cookor.poi.modules.cms.entity.CmsSurveryQuestion;
import com.cookor.poi.modules.cms.entity.CmsSurveryQuestionExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisDao
public interface CmsSurveryQuestionDao {
    long countByExample(CmsSurveryQuestionExample example);

    int deleteByExample(CmsSurveryQuestionExample example);

    int deleteByPrimaryKey(String id);

    int insert(CmsSurveryQuestion record);

    int insertSelective(CmsSurveryQuestion record);

    List<CmsSurveryQuestion> selectByExample(CmsSurveryQuestionExample example);

    CmsSurveryQuestion selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") CmsSurveryQuestion record, @Param("example") CmsSurveryQuestionExample example);

    int updateByExample(@Param("record") CmsSurveryQuestion record, @Param("example") CmsSurveryQuestionExample example);

    int updateByPrimaryKeySelective(CmsSurveryQuestion record);

    int updateByPrimaryKey(CmsSurveryQuestion record);

    List<CmsSurveryQuestion> findBySurveryId(@Param("surveryId")Integer surveryId);

    void deleteBySurveryId(String surveryId);
}